using MicroMsg.Common.Event;
using System;
namespace MicroMsg.Storage
{
	public class NewsStorage : StorageMemory<News, int>
	{
		public NewsStorage() : base((News c) => c.nMsgLocalID)
		{
		}
		public void clearAll()
		{
			base.clear(false);
		}
		public override void notify(int operation, News item)
		{
			EventCenter.postCombineEvent(EventConst.ON_STORAGE_NEWSMSG_ADD + operation, item);
		}
	}
}
